gen abbrev = ""

replace abbrev = "ALB" if country=="Albania"
replace abbrev = "ARG" if country=="Argentina"
replace abbrev = "ARM" if country=="Armenia"
replace abbrev = "AUS" if country=="Australia"
replace abbrev = "AUT" if country=="Austria"
replace abbrev = "AZE" if country=="Azerbaijan"
replace abbrev = "BAH" if country=="Bahamas"
replace abbrev = "BAN" if country=="Bangladesh"
replace abbrev = "BRB" if country=="Barbados"
replace abbrev = "BEL" if country=="Belgium"
replace abbrev = "BLZ" if country=="Belize/British Honduras"
replace abbrev = "BOL" if country=="Bolivia"
replace abbrev = "BRA" if country=="Brazil"
replace abbrev = "BUL" if country=="Bulgaria"
replace abbrev = "BLR" if country=="Byelorussia"
replace abbrev = "CAM" if country=="Cambodia (Kampuchea)"
replace abbrev = "CMR" if country=="Cameroon"
replace abbrev = "CAN" if country=="Canada"
replace abbrev = "CPV" if country=="Cape Verde"
replace abbrev = "CHI" if country=="Chile"
replace abbrev = "CHN" if country=="China"
replace abbrev = "COL" if country=="Colombia"
replace abbrev = "CRC" if country=="Costa Rica"
replace abbrev = "CRO" if country=="Croatia"
replace abbrev = "CUB" if country=="Cuba"
replace abbrev = "CYP" if country=="Cyprus"
replace abbrev = "CZE" if country=="Czech Republic"
replace abbrev = "CZS" if country=="Czechoslovakia"
replace abbrev = "DEN" if country=="Denmark"
replace abbrev = "DOM" if country=="Dominican Republic"
replace abbrev = "ECU" if country=="Ecuador"
replace abbrev = "EGY" if country=="Egypt/United Arab Rep."
replace abbrev = "SLV" if country=="El Salvador"
replace abbrev = "EST" if country=="Estonia"
replace abbrev = "ETH" if country=="Ethiopia"
replace abbrev = "FIJ" if country=="Fiji"
replace abbrev = "FIN" if country=="Finland"
replace abbrev = "FRA" if country=="France"
replace abbrev = "GER" if country=="Germany"
replace abbrev = "GHA" if country=="Ghana"
replace abbrev = "GRE" if country=="Greece"
replace abbrev = "GUA" if country=="Guatemala"
replace abbrev = "GUY" if country=="Guyana/British Guiana"
replace abbrev = "HND" if country=="Honduras"
replace abbrev = "HUN" if country=="Hungary"
replace abbrev = "ISL" if country=="Iceland"
replace abbrev = "IND" if country=="India"
replace abbrev = "IDN" if country=="Indonesia"
replace abbrev = "IRN" if country=="Iran"
replace abbrev = "IRL" if country=="Ireland"
replace abbrev = "ISR" if country=="Israel/Palestine"
replace abbrev = "ITA" if country=="Italy"
replace abbrev = "JAM" if country=="Jamaica"
replace abbrev = "JPN" if country=="Japan"
replace abbrev = "JOR" if country=="Jordan"
replace abbrev = "KAZ" if country=="Kazakhstan"
replace abbrev = "KEN" if country=="Kenya"
replace abbrev = "KOR" if country=="Korea"
replace abbrev = "KUW" if country=="Kuwait"
replace abbrev = "LVA" if country=="Latvia"
replace abbrev = "LIB" if country=="Lebanon"
replace abbrev = "LTU" if country=="Lithuania"
replace abbrev = "MKD" if country=="Macedonia"
replace abbrev = "MAS" if country=="Malaysia"
replace abbrev = "MEX" if country=="Mexico"
replace abbrev = "MDA" if country=="Moldavia"
replace abbrev = "MAR" if country=="Morocco"
replace abbrev = "NEP" if country=="Nepal"
replace abbrev = "NED" if country=="Netherlands"
replace abbrev = "NZL" if country=="New Zealand"
replace abbrev = "NCA" if country=="Nicaragua"
replace abbrev = "NGA" if country=="Nigeria"
replace abbrev = "NOR" if country=="Norway"
replace abbrev = "RUS" if country=="Other USSR/Russia"
replace abbrev = "PAK" if country=="Pakistan"
replace abbrev = "PAN" if country=="Panama"
replace abbrev = "PAR" if country=="Paraguay"
replace abbrev = "PER" if country=="Peru"
replace abbrev = "PHI" if country=="Philippines"
replace abbrev = "POL" if country=="Poland"
replace abbrev = "POR" if country=="Portugal"
replace abbrev = "PRI" if country=="Puerto Rico"
replace abbrev = "GEO" if country=="Republic of Georgia"
replace abbrev = "ROU" if country=="Romania"
replace abbrev = "KSA" if country=="Saudi Arabia"
replace abbrev = "SEN" if country=="Senegal"
replace abbrev = "SRB" if country=="Serbia"
replace abbrev = "SIN" if country=="Singapore"
replace abbrev = "SVK" if country=="Slovakia"
replace abbrev = "RSA" if country=="South Africa (Union of)"
replace abbrev = "ESP" if country=="Spain"
replace abbrev = "SRI" if country=="Sri Lanka (Caylon)"
replace abbrev = "SWE" if country=="Sweden"
replace abbrev = "SUI" if country=="Switzerland"
replace abbrev = "SYR" if country=="Syria"
replace abbrev = "TZA" if country=="Tanzania"
replace abbrev = "THA" if country=="Thailand"
replace abbrev = "TRI" if country=="Trinidad and Tobago"
replace abbrev = "TUR" if country=="Turkey"
replace abbrev = "UGA" if country=="Uganda"
replace abbrev = "UKR" if country=="Ukraine"
replace abbrev = "UAE" if country=="United Arab Emirates"
replace abbrev = "GBR" if country=="United Kingdom, n.s./ n.e.c."
replace abbrev = "URU" if country=="Uruguay"
replace abbrev = "UZB" if country=="Uzbekistan"
replace abbrev = "VEN" if country=="Venezuela"
replace abbrev = "VIE" if country=="Vietnam"
replace abbrev = "YEM" if country=="Yeman Arab Republic (North)"
replace abbrev = "ZAM" if country=="Zambia"
replace abbrev = "ZIM" if country=="Zimbabwe"





